package com.bwhx.eruler.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.bwhx.eruler.bean.Page;
import com.bwhx.eruler.bean.RulerSdkData;
import com.bwhx.eruler.dao.RulerSdkDataDao;

/**
 * @Description:
 */
@Repository
public class RulerSdkDataDaoImpl extends BaseDaoImpl<RulerSdkData> implements RulerSdkDataDao {
	public RulerSdkDataDaoImpl() {
		this.setNs("com.bwhx.eruler.mapper.RulerSdkDataMapper.");
	}

	@Override
	public List<RulerSdkData> list(Page p) {
		return getSqlSession().selectList(this.getNs()  + "list",p);

	}

	@Override
	public Integer count(RulerSdkData rsd) {
		Object selectOne = getSqlSession().selectOne(this.getNs() + "count",rsd);
		if(null!=selectOne && selectOne instanceof Integer){
			return (int)selectOne;
		}
		return 0;
	}

	/*@Override
	public List<BuyerSdk> findByBuyerId(Integer buyerId) {
		return getSqlSession().selectList(this.getNs() + "findByBuyerId", buyerId);

	}
	
	@Override
	public List<BuyerSdk> list(Page p) {

	}

	@Override
	public Integer count(BuyerSdk bs) {
		Object selectOne = getSqlSession().selectOne(this.getNs() + "count",bs);
		if(null!=selectOne && selectOne instanceof Integer){
			return (int)selectOne;
		}
		return 0;
	}
*/

	/*public List<Department> findByName(String deptname) {
	
		return getSqlSession().selectList("com.bwhx.eruler.mapper.DepartmentMapper." + "findByName", deptname);
	}


	

	@Override
	public void inputDepartment(Department d) {
		this.getSqlSession().update("com.bwhx.eruler.mapper.DepartmentMapper." + "updateruler", d);
		
		
	}




	@Override
	public List<Department> deptListAll() {
		return getSqlSession().selectList("com.bwhx.eruler.mapper.DepartmentMapper." + "listAll");

	}
	*/
}
